package com.ymatou.shop.ui.view.item;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import android.widget.TextView;

import com.ymatou.shop.R;
import com.ymatou.shop.model.Comment;

public class CommentItemView extends FrameLayout {
	
	private TextView mNameTextView;
	private TextView mContentTextView;

	public CommentItemView(Context context) {
		super(context);
		initCommentItemView();
	}
	
	private void initCommentItemView() {
		LayoutInflater.from(getContext()).inflate(R.layout.list_item_comment, this);
		
		mNameTextView = (TextView) findViewById(R.id.name_txt);
		mContentTextView = (TextView) findViewById(R.id.content_txt);
	}
	
	public void setData(Comment item) {
		mNameTextView.setText(item.mReplyUserName + "：");
		mContentTextView.setText(item.mContent);
	}

}
